package cn.tedu.account.service;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.tedu.account.mapper.AccountMapper;
@Service
public class AccountServiceImpl implements AccountService {
	
	 @Autowired
	    private AccountMapper accountMapper;

	@Override
	@Transactional
	public void decrease(Long userId, BigDecimal money) {
		accountMapper.decrease(userId,money);
		
	}

}
